import Layout from '@/layout'
// 动态路由:组织架构
// 🔖📖知识点：设置二级路由方法
// 1.设置一级路由为/ ,二级department
// 2.设置一级/department,二级为空
// 因为框架会对path遍历，需要唯一，所以只能使用第二种

export default {
  path: '/department',
  component: Layout,
  name: 'departments',
  children: [{
    path: '',
    component: () => import('@/views/departments'),
    name: 'department',
    meta: {
      title: '组织架构',
      icon: 'tree'
    }
  }]
}
